package com.stack.auto_parts.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stack.auto_parts.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Title: ProductMapper
 * @Author WUYU_MIN
 * @Package com.stack.auto_parts.mapper
 * @Date 2024/7/8 16:46
 * @description:
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    public List<Product> listByCondition(String part_name, String supplier);

    @Select("select * from product where part_name=#{part_name} and supplier=#{supplier}")
    public Product getNumber(String part_name,String supplier);
}
